home *** CD-ROM | disk | FTP | other *** search
-
- This software is hereby donated to the public domain by the author, David
- Bradley. All I ask is that you leave my name where it is. If you modify the
- code, add your name, but leave mine as is. I hope you find this bit of software
- useful. If you do, I'd like to know, just drop me a message on BIX or contact
- me at home. There is a possibility that upgrades will occur. If they do,
- you'll should be able to find them on a local bulletin board. If not, for a
- small fee, I'll send you a copy. You can contact me on BIX, send EMail to bwd.
- My phone number is (513) 539-7825. Address: 55 Ohio Ave.
- Monroe, OH 45050
-
-
-
-
- INSTRUCTIONS
-
- This is a unit that gives your programs the ability to spool print jobs. There
- is only one requirement. The DOS PRINT utility must be resident or a spooler
- that will emulate it. This unit does not actually do the spooling itself, but
- gives you access to the DOS PRINT utility. It passes the name of a file to the
- utility to be printed. It also has various functions to control and monitor the
- spooler. As long as your DOS PRINT utility works on the system, this unit
- should work fine.
-
- There are basically three steps you must follow to use this unit. First, the
- DOS PRINT utility must be resident upon execution of the program. Second,
- you'll need to use the Get_Spool_Name to get a name to use as the file name to
- print to. Third, after closing the file, execute the Submit procedure to submit
- the file to the spooler.
-
- The following is a list of the procedures contained within the unit and a
- description:
-
-
- procedure Submit;
-
- This procedure submits that last file name generated by the
- Get_Spooler_Name function. If the spooler is not installed, it will not do
- anything.
-
-
- function Submit_File(Name:string):boolean;
-
- This function is identical to the above Submit procedure, except it allows
- you to specify the file name to submit to the spooler. If the operation
- was successful, the function returns true, else it will return false.
-
-
- function Submit_Files(Name:string):boolean;
-
- This function is the same as Submit_File, except it allows the use of
- standard DOS wildcards, and will submit all files matching the file name.
-
-
- function Cancel_File(Name:string):boolean;
-
- This function allows you to cancel a job or jobs that are qued. Wildcards
- are allowed. If successful, the function returns true, else it will return
- false.
-
-
- procedure Terminate_Spooler;
-
- This function terminates the spooler.
-
-
- function Get_Spooler_Entry:string;
-
- This function will return the next spooler entry. If the first string
- returned is blank, then spooler is empty. The function will return the
- next spool entry in line until the end is reached, then it will return a
- null string. Note, this option will pause the spooler also. A
- Resume_Spooler will restart the spooler. The current job will continue
- where it left off.
-
-
- procedure Pause_Spooler;
-
- Temporary halts the spooler. Use Resume_Spooler to restart the spooler.
-
-
- procedure Resume_Spooler;
-
- This procedure will resume the spooler after a Get_Spooler_Entry or
- Pause_Spooler routine has been called. The spooler will resume where it
- left off.
-
-
- function Spooler_Installed:boolean;
-
- This function returns true if PRINT, or compatible spooler, is resident.
-
-
- function Get_Spool_Name:string;
-
- This function will return the next spool name in line. The name is in the
- format of SPOOL.XXX, where XXX is a number between 0 and 999. This ensures
- that none of your jobs conflict with another.
-
-
- function Spooler_Empty:boolean;
-
- This function will return true if the spooler is empty, else it will return
- false.
-
-
-
- There is a SpoolExitProc variable. This variable is initialized to a default
- routine that checks for active spool jobs upon termination of the program. If
- you wish, you may set it to a procedure of your own, so that your program may
- take control. The procedure should be a standard procedure with no parameters.
-
-
- NOTE:
-
- This unit was compiled using Turbo Pascal Version 5.0. If your using version
- 4.0 or lower, you may run into some problems. Version 4.0 should, and I stress
- should, work ok. The conditional statements should handle the differances. If
- your using version 4.0, it will be up to your program to call the exit spooler
- routine before your program terminates, if you want to. If your using a pre 4.0
- compiler, good luck.
- ----------------end-of-author's-documentation---------------
-
- Software Library Information:
-
- This disk copy provided as a service of
-
- The Public (Software) Library
-
- We are not the authors of this program, nor are we associated
- with the author in any way other than as a distributor of the
- program in accordance with the author's terms of distribution.
-
- Please direct shareware payments and specific questions about
- this program to the author of the program, whose name appears
- elsewhere in this documentation. If you have trouble getting
- in touch with the author, we will do whatever we can to help
- you with your questions. All programs have been tested and do
- run. To report problems, please use the form that is in the
- file PROBLEM.DOC on many of our disks or in other written for-
- mat with screen printouts, if possible. The P(s)L cannot de-
- bug programs over the telephone.
-
- Disks in the P(s)L are updated monthly, so if you did not get
- this disk directly from the P(s)L, you should be aware that
- the files in this set may no longer be the current versions.
-
- For a copy of the latest monthly software library newsletter
- and a list of the 2,000+ disks in the library, call or write
-
- The Public (Software) Library
- P.O.Box 35705
- Houston, TX 77235-5705
- (713) 524-6394
-